package com.java.mytools.entity.po;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;
import java.util.List;

public class SysUserPO extends BasePO {

  private static final long serialVersionUID = 1L;

  private long userId;

  private long deptId;

  private String userName;

  private String nickName;

  private String userType;

  private String email;

  private String phoneNumber;

  private String sex;

  private String avatar;

  private String password;

  private String status;

  private String delFlag;

  private String loginIp;

  private Date loginDate;

  private List<SysRolePO> roles;

  public List<SysRolePO> getRoles() {
    return roles;
  }

  public void setRoles(List<SysRolePO> roles) {
    this.roles = roles;
  }

  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

  public long getDeptId() {
    return deptId;
  }

  public void setDeptId(long deptId) {
    this.deptId = deptId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getNickName() {
    return nickName;
  }

  public void setNickName(String nickName) {
    this.nickName = nickName;
  }

  public String getUserType() {
    return userType;
  }

  public void setUserType(String userType) {
    this.userType = userType;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getPhoneNumber() {
    return phoneNumber;
  }

  public void setPhoneNumber(String phoneNumber) {
    this.phoneNumber = phoneNumber;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public String getAvatar() {
    return avatar;
  }

  public void setAvatar(String avatar) {
    this.avatar = avatar;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getDelFlag() {
    return delFlag;
  }

  public void setDelFlag(String delFlag) {
    this.delFlag = delFlag;
  }

  public String getLoginIp() {
    return loginIp;
  }

  public void setLoginIp(String loginIp) {
    this.loginIp = loginIp;
  }

  public Date getLoginDate() {
    return loginDate;
  }

  public void setLoginDate(Date loginDate) {
    this.loginDate = loginDate;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this)
            .append("userId", userId)
            .append("deptId", deptId)
            .append("userName", userName)
            .append("nickName", nickName)
            .append("userType", userType)
            .append("email", email)
            .append("phoneNumber", phoneNumber)
            .append("sex", sex)
            .append("avatar", avatar)
            .append("password", password)
            .append("status", status)
            .append("delFlag", delFlag)
            .append("loginIp", loginIp)
            .append("loginDate", loginDate)
            .append("roles", roles)
            .toString();
  }
}
